// import service from "../index";

export const login = () => {
   return new Promise((resolve,reject) => {
    let flag = true
    setTimeout(() => {
        if (flag) {
            resolve("登陆成功")
        }else {
            reject("登陆失败")
        }
    }, 2000);
   })
}